﻿using System.Linq;
using Core.Contract.DataContract;
using Data.DAO;
using www.Models;

namespace Data.BO
{
    public class MenuMemberBO//:BaseBO<MenuMemberDAO,RelaxMenu_ManagerMember>
    {
        #region value
        private readonly MenuMemberDAO _memberDao=new MenuMemberDAO();
        #endregion

        #region Hàm lấy dữ liệu

        public IQueryable<RelaxMenuMemberDataContract> GetMenuMemberDataContracts()
        {
            return _memberDao.GetModulDataContracts();
        }
        #endregion

        #region Hàm Add
        public void Add(RelaxMenu_ManagerMember menuManagerMember)
        {
            _memberDao.Add(menuManagerMember);
        }
        #endregion

        #region Hàm Update
        public void Update(RelaxMenu_ManagerMember menuManagerMember)
        {
            _memberDao.Update(menuManagerMember);
        }
        #endregion

        #region Hàm Delete
        public void Delete(long iId)
        {
            _memberDao.Delete(iId);
        }
        #endregion
    }
}
